﻿#pragma once
#ifndef TAKESDB_H_
#define TAKESDB_H_
#include "Takes.h"
#include "Database.h"
#include <string>
#include <list>

class TakesDB:public Database
{
public:
	TakesDB();
	Takes selectByStudentIdAndCourseId(const std::string &si, const std::string &ci);
	list<Takes> selectAll();//查询所有
	list<Takes> selectAllByStudentId(const std::string &si);
	list<Takes> selectAllByCourseId(const std::string &ci);
	void deleteByStudentIdAndCourseId(const std::string &si, const std::string &ci);
	void update(Takes &t);
	void insert(Takes &t);
	~TakesDB();
};
#endif // !TAKESDB_H_
